import request from '@/utils/request'

// 查询webCall语音通知列表
export function listWebcall(query) {
  return request({
    url: '/crm/webcall/list',
    method: 'get',
    params: query
  })
}

// 查询webCall语音通知详细
export function getWebcall(id) {
  return request({
    url: '/crm/webcall/' + id,
    method: 'get'
  })
}

// 新增webCall语音通知
export function addWebcall(data) {
  return request({
    url: '/crm/webcall',
    method: 'post',
    data: data
  })
}

// 修改webCall语音通知
export function updateWebcall(data) {
  return request({
    url: '/crm/webcall',
    method: 'put',
    data: data
  })
}

// 删除webCall语音通知
export function delWebcall(id) {
  return request({
    url: '/crm/webcall/' + id,
    method: 'delete'
  })
}
